package com.itheima.oop.d4_encapsulation;
public class Test {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.name  = "1";
        s1.score = 99.5;
        s1.printStudent();

        String[] a = new String[10];
        int[] b = new int[10];
        //开辟了十个对象地址
        Student[] a1 = new Student[10];
        for (int i = 0; i < 10; i++) {
            //进行十次 创建对象 对象地址存进数组
//            a1[i] = new Student();//尝试注释掉该行 重新运行
            a1[i].printStudent();

        }


    }
}
